package com.ruoyi.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.business.domain.TRegisterNotice;
import com.ruoyi.business.vo.TRegisterNoticeVo;
import com.ruoyi.business.mapper.TRegisterNoticeMapper;
import com.ruoyi.business.service.ITRegisterNoticeService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 录取通知Service业务层处理
 *
 * @author Tellsea
 * @date 2024-01-26
 */
@Service
public class TRegisterNoticeServiceImpl extends ServiceImpl<TRegisterNoticeMapper, TRegisterNotice> implements ITRegisterNoticeService {

    @Override
    public TableDataInfo<TRegisterNoticeVo> queryList(TRegisterNoticeVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<TRegisterNoticeVo> queryAll(TRegisterNoticeVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public TRegisterNoticeVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }

    @Override
    public TRegisterNoticeVo queryByRegisterId(Long registerId) {
        return this.baseMapper.queryByRegisterId(registerId);
    }

    @Override
    public String getNewJobNumber(String jobNumberPre) {
        return this.baseMapper.getNewJobNumber(jobNumberPre);
    }

    @Override
    public void revertOverLeaveDurationHandle() {
        this.baseMapper.revertOverLeaveDurationHandle();
    }

    @Override
    public void overLeaveDurationHandle() {
        this.baseMapper.overLeaveDurationHandle();
    }
}
